added syncing to S3 and made the archive path argument optional