sqs integration and added logging