change net::read() to traditional function
add logger include