added some logging statements to the workers