allow replacing the whole document