minor tweaks made to rshell.cpp