output tweaks and script tweaks.