wait for file copy to finish before pushing to S3 -- very important