small cleanup of countdown script and fix #11