added first version of rolling logbuffer