first pass at namespaces in exposed functions (to be used by plugins)