updated to use fog and amazon s3 for file storage