refactor the rpc pro dependency