connect and disconnect done