tweak text according to specs, and add exit routine