add stats command in the rpc section