replace profile.dat by filename