fixed usage of aws-sdk