prevent leak when used in global export mode