added template creation ability