stream parser now matches matlab output