added high level sqs functionality and tests