adapt to tpdb-0.9.1