next cookies refactores and dough