working corpus in/out
tweaks