Update cookbook to revised api