added prefer_production_net flag