completed more work on fixing scheduling algorithm bugs;