parse initial state.