added deploy script
reapply changes from scheduler-dev