supplement serialization.null.format if online has this property
call clear_tmp_files whenever exit