updated parser to output dot files