switch http read to new api