made changes to StateManager in preparation for IOconditions