fixed issue regarding local amazon s3