adopt a more flexible template for networks