fix #22 and #23
Merge branch 'bulkReadWrite'