reformat resource files