very basic scheduling implemented