reordered the fetching of the access token in the sqs lib. TODO once verified update the other libs