write html file for graphite
fix import bug