made compatible with current aws-sdk