small fixes, preparing for being an actual netmask calculator