adding completion block parameter with connection status