removed file_is_valid