messing with state handler