sheduler initial implementation