changed to work with cookbook