add ability to provide a function in namespace map