fix routes and namespaces