conditionally isolate the namespace if applicable