bug fix for aws sqs plugin; make use of batch size..
Some refactoring