added ability to parse miltiple commands