copied over new .resample.cgr