slightly more template worker code