added network testing code for testing on cloud server