implememt network api with discover