fixed several bugs where aws behavior was out of date.

made result_reader slightly more complicated