persist open/close of metadata sections