state reset after each parse