[backend] keep imports when wiping