network API improvements