update to use 0.9.12 push/encoding API for _write _transform and _flush