ensure that no files are written if user input is not provided.
ensure that no files are written if user input is not provided.