data munging and file renaming scripts