made rpc pass configurable