set default to don't log to file
refactor in output
debug logging in run_process function