scheduler works! test cases still needed...