encoder_factory updateded