     }
 
 
-    static func canOpenType(type: String) -> Bool {
-        return !(type == FileType.PDF.rawValue || type == MimeType.PDF.rawValue) && !(type == FileType.PASS.rawValue || type == MimeType.PASS.rawValue)
+    static func canOpenMIMEType(mimeType: String) -> Bool {
+        return !(mimeType == MimeType.PASS.rawValue || mimeType == MimeType.PDF.rawValue)
     }
 
     func open() {

    lazy var openInView: OpenInView? = getOpenInView(self)()

    lazy var documentDirectory: NSURL = {
        return NSURL(string: NSTemporaryDirectory())!.URLByAppendingPathComponent(FileType.PDF.rawValue)
    }()

    private var filepath: NSURL?

    required init(url: NSURL) {
        self.url = url
        super.init()
        setFilePath(url.lastPathComponent ?? "file.pdf")
    }

    required init?(response: NSURLResponse) {
        guard let responseURL = response.URL else { return nil }


    private var url: NSURL

    required init?(response: NSURLResponse) {
        guard let responseUrl = response.URL else { return nil }
        url = responseUrl
        super.init()
    }

    static func canOpenMIMEType(mimeType: String) -> Bool {
        return mimeType == MimeType.PASS.rawValue && PKAddPassesViewController.canAddPasses()
    }

    func open() {
