s3 connection fix
Merge pull request #238 from shaon/s3fix

s3 connection fix