refactor http-cat: using streams!