three modes: encoding, eds, eds with encoding