Fix up reader, add log to trace what's going on