countdown functionality
fixes #10