add state
added states for parser, update functions of goal module