https://gist.github.com/tybenz/3d39cfed6ff80b44047b added to shortener