code moved into the wlEntities directive