only encoding exported fields