added a scheduler