rewrite master and workers' job loader