pass the reader to the visitor