fixed templates and recipes to use value of attributes