add generate control file method