modifications to worker logic