add dia library, visualizer code