implement accessing metadata