update file extensions in memory