roughly implement v4 arch, and add comments to bat scripts