migrate templates