clean code, tweaks to windowing at the end of a sequence / log messages