added mcd and myip functions