fix #22 and #23
Merge branch 'bulkReadWrite' into dev