cleaner and more robust status/window format & update_title stuff