simple refinement for rpc helpers in angular