quit while waiting much more complicated than it seemed