Use new enchant API in the framework