fixed bugs in stream parsing. works between deluge and deluge.