borrowd from the cc-chef-repo project