Migrate old files, proper handling of profiles