cleaned up get_targets ... again