made try_to_parse a class method