new auto-encoding support