added option to remove namespaces in resulting array