added regex matching for namespaces in autoloader