added network functions for client