chef.c done but *untested*