working on network API