ported ext/enchant