added some of r_idn's scripts