debug the cached chunk regeneration code -- currently broken