start implementing server-side subnet calculations