added aws api to scheduler and api handles queues