add tsp, make html tool better