scheduler prototype ~working