add checkDomain, checkIP functions