sqs fixes for reading messages