ugly as can be - but algorythm seems to work. streamparser buggy with substraction/neg numbers.