- new offset class

- faster reading and writing