modularize rpc filtered network map per Wendy's suggestion
modularize rpc filtered cost map per Wendy's suggestion