update code for e-mailing workers