added network stream wrapper