more tweaking of active task code