add rshell.cpp with parsing