* fix flags for state of rest parsing