add rpc auth support