fixed bogus read -r