add compatible for other type of rpc

Change-Id: I2ffcb7f51d1b3a03403129fae88ecfc841e62520