addition of modular template code for subnets
addition of modular template code for subnets