setup a receiveEOP() which is shared by serveral functions