fixed some bugs in output parsing