rewrote network testing program to use timeouts, however using twice the same timeout is not working yet