forgot to invert valid ip test, remove debugging