added PeekingActor which can keep the read and write operations in check
with each other