added checking for namespaces in the file