fixed putFile
speeded up the AWS link