updated logging in task manager