moved stub deletion into its own function: _addNodeTracking