first version with support for dot and gml