modifies imports in compile.