log file and seq_num mechanism