added output parser and testing