add Egret support