some tools for Egret