full http network refactoring