Rewrite Connection

ex-version got serious bug.