Mochad -> adding state setting from recent master addition of _onstate