changed parser to a namespace instead of a class