midway to add reconnect
reconnect is done. Not debugged yet.
Merge branch 'master' into dev-kun