a nice ending transition
scripted update of code from master at ffaa1f6 a nice ending transition