move tsf to dll