replaced getTargetNames, getTargets with getTaskTargetNames, getTaskTargets