metadata: started integrating metadata-handling into reader