P: simplified receiver
J: add locking mechanism to ProtoSender