catch invalid_file