         try! signer.selfSign(request, with: kp.privateKey)
         try! signer.authoritySign(request, forAppId: self.consts.applicationId, with: appPrivateKey)
         
-        return request;
+        return request
     }
     
     func instantiateEmailCreateCardRequest(withIdentity identity: String, validationToken: String, keyPair: VSSKeyPair?) -> VSSCreateEmailCardRequest {

        
        try! signer.selfSign(request, with: kp.privateKey)
        
        return request;
    }
    
    func instantiateCreateCardRequest(with data: [String : String]) -> VSSCreateCardRequest {

        let metadataReceivedCallback = { (metadataList: [VSMEmailMetadata]) in
            // find last message
            let lastMetadata = metadataList.min(by: { m1, m2 in
                return m1.seconds_ago.compare(m2.seconds_ago) == .orderedAscending
            })!
            
            getEmail(lastMetadata.mid) { email in
                let bodyPart = email.parts[0]
                
                let matchResult = self.regexp.firstMatch(in: bodyPart.body, options: .reportCompletion, range: NSMakeRange(0, bodyPart.body.lengthOfBytes(using: .utf8)))
                
