added saving of bib regions to file