better REST interface, jsonrpc inpired