Hope this code helps gets someone out of a hole, the way it did for me. This gist is licensed under [wtfpl](http://www.wtfpl.net/).