fix premature removal of input_file_path