added parser to get the output string, finished