added explicit connection state