moved wrapper functions to anonymous namespaces