added sqs functionality