add flags to global and chef.