read metadata