removing listen and disconnect