build --> build.up build.down
build --> build.up build.down
set id + rev in order to reconstruct the doc