initial copy from UIAVerify