hr script from https://github.com/LuRsT/hr