read from the metadata not file