add debug flags, ip address lookup works