first functional rough state-manager version