convert net crate to use hyper