hack to preserve objects