rewrite wip
batch
basic batch encoding, cleanup