added templateloader