copied OSCreceiver example