implemented stateful parser