implemented optimistic modules with optimistic versioning on state fixes #73