work version with namespaces