referer, handles nested fields