initial impl of the support for TS