adding graphviz mode and stuff