added network endpoints and unit tests