updated file generator