made return info configurable for fields and layers