implements worker launch function