added client functionality for network test