removed all instances of ActiveState.allActive and replaced with the new session variable