tps util + plotting functions added