rshell.cpp updated