cleaned up parse_file functions