option to stop execution if file does not exist