added a method to get all metadata of a field path