updated user agent parser to run as a generic udf. Increases performance