basic json rpc for job handling