modify ae code toward independence of optimizer