pub fn write_args<T: Serialize>(args: &T)