modify scipt for PrepID migration