added filemanager class and got saving of regions working again