temporary file and fix simulate option