libtsm-3 (WIP)