fixed problems with reconnectivity
fixing compilation problems with SDK 3.0