see this [gist here](https://gist.github.com/searls/8167017). we can probaby pull it in mostly as-is
see this gist here. we can probaby pull it in mostly as-is