fixed ctl file gen and changes