clone from andykmc\ierg4210