put first the local template lookup