gem'ified version of DeLynn Berry's original plugin