flexible contexts and context reduction