introduce a pubsub system for communication
clear the buffer on screen clears
note race condition