updating to not prompt on non-tty