add safeguard for live reading overflow