no more useless bufferwrite and bufferread, map / unmap