match --flavor as a substring
refactor network setup