added nested state
release v0.2