updated reading script -- hopefully this is more reliable