* sets use_ipv6 = False by default * switches to ami-tty for tests * generally improves error handling