branch on _ns type instead of object sniffing