add hack to try to avoid garbage collection