scheduler changes for API