setup work for removing an import