progress on scheduler, works primitively, needs a lot of error checking to be put in place