script process for regenerating the TPs rather than having to do it manually; add missing steps