simplified client code and added msg for future support. Also change the way messages are received in a shell, and fixed /shell command