cloned from https://github.com/bmcbride/bootleaf