include upper class header into esoptimizer