moving http stack to util package