using ScopedPointer for yarp stuff