added support for dhcp and static networks