fix new api

init-state should return a map with a state!