add model and template patterns