made remoting work
rewrote ClientMain