improve: parser state reset