modify imports, namespace qualify