refactor parser to be more like nodejs steam docs example