working on prepl mode for parser