added compatibility with thx.unit