working out a RandomAccessFile implementation of the event store