wip: compiles now. batch checks need rework too.