bug solved when initializing external scripts
templates folder added