minor changes in scheduler and worker
merged aron's work
refactored registration to use workers