added templateLoader