cleanup and worker dispatch
Merge remote-tracking branch 'upstream/master'