prepared for state parsing