improved behaviour of task manager