fix mangled imports.