better error feedback when templates can not be found