bugfix for json-rpc command and various new commands added