enhance the Parser class