make parser class configurable