its sort of unrelated - it took me a few minutes to work out that the script did most of its work before ``main()`` was called.