read old format files correctly