remove disconnect code