added psuedo gui functionality to rr.cpp