use stream implementation in both cgi and hunchentoot versions