added support for extracting repeated fields