extend namespaces with callbacks