Make global id for json-rpc, fix completion and name