restructured with http-jsonrpc, winston