edited rshell.cpp