added support for  writing to S3 on rollover
updated to support compression