add some flexibility to write.NetworkPlan