first draft of http reader with prefetch