make dialect namespace creation stack safe