updated script to deal with velsurf_mag, velbase_mag