network connection helper class