file and template to worker context