fixed getting net mask
initial release with 2 reboots