bugs fixed

- wrong options passed to stateManager creation function
- the stateDefaults object is introspected properly