added support for incremental state machines