Prepare for frontend auth and fix namespaces.