refactor to add Interface.netmask