refactor readMeta