added namespaceresolver
removed debug code