add support for tsd