added parse_token to model