adapt for cxFreeze