support for new tmlib.js

support for new tmlib.js