rewrite of rpc definition: version 1.0