applyDir in jsonrpc2-connect