cookpath define