#207 fix connect() for better UX