few batch tweaks; much logging