make isconnected public