rename files and collect path info