Draft: fixing bugs in opening older files