bug fixes on namespaces