prepare for re-computing flattenings