try using functions provided in LibTom1.17