migrate template