modify disconnect