fix a lot of errors. use plcsh instead of xmlrpc