added attributes and made it use cookbooks