added option to recursively parse namespaces