a few of the better bits (IMO) from pull request #346