working progress, trying to implement network connection checker