fix reconnect issue
fix reconnect and add countdown
cleanup