Read metadata and improve public api