improvements to result parsing
comments