added client reconnecting in demos