update file generation a little