added debugging to determine why unneeded tasks are being added