add target_location_namespace check