do not update hidden preview, hide preview in the end, so state is ok if one encodes...