added dispatcher and scheduler, left some questions