json rpc: fixed + error hadnling like a baws