little clean up and some logging in the sqs block

this is a minor tidy up