csv output, mode input, better cidr handling