repacking with TS integration