moved NetworkRulesAdapter to here.