It took a while to get the stream cleaning procedures correct (especially wrgt forking).. I'll kill that commented out code