change read_meta_data to private method