added support for ligatures