copy of https://github.com/tumblr/jumblr/