support for new tmlib.js