fixes #1 -- no more stack overflow when connection wasn't established