add encode config and backup