finished adding metadata support to the reader