added implementation for copyFromS3 and doImport