added template & update directories