exception when template cannot be found in dir