updated rshell.cpp to remove unnecessary code