initial changes for handling the sqs email request