added attributes, cleaner cookbook