made sure not to delete files that we need, some error in the migration dates function TODO?