compatability with 2013-01-01 version, added document batching and timestamp updates