fixed backward compatibility for disconnects