switch netmask to prefixlen in backend