read state from POST (copy&paste error)