auth switch and default namespace support