finished basic scheduling--still some bugs