public api to tsp functionality