copy imports onto new class