get rid of use of yarp::os::Event