modify the way .mod files generated