implemented read/write on memblocks, needs testing