connection and disconnection worked now