update template script loader