- new hacked version of xstream which can be run multiple times