added template exceptions