minor improvement to SDReader