added https://gist.github.com/octocat/9257657