optionalImport/prependImport retain attributes of other packages