github-ified modern version of the RYM enhancer script originally by fmartin