try fixing declare_namespace KeyError