added logging and fixed a small bug in rvosd protocol