adding S3 support for uploading files - getting stable