ts-master lib