replacing writer class in parser