updated get_dataset to get group and element of tag separately