make sure we return None if the file type is unrecognized