* locking buffers with offset and size
* cosmetic changes