cleanup detection of targets