fix the bug that did not send batch
dynamodb support added