refactoring, intoduction of HTTPotion