add state for handlers