added network client code