fixed issue with namespaced modules and protect against minification.