sleep and action dispatcher