                 resources += cssPaths
             }
 
-            completionHandler(data: data, resources: resources, error: nil)
+            completionHandler(data: data, metaData: metaData, resources: resources, error: nil)
         }
         task.resume()
     }

     */
    public static func archiveWebpageFormUrl(url: NSURL, completionHandler: ArchiveCompletionHandler) {

        self.resourcePathsFromUrl(url, fetchOptions: defaultFetchOptions) { (data, resources, error) in
            guard let resources = resources else {
                printLog("resource fetch error : \(error)")
                completionHandler(webarchiveData: nil, error: .FetchResourceFailed)
                return
            }

            let resourceInfo = NSMutableDictionary(capacity: resources.count)

            let assembleQueue = dispatch_queue_create(kResourceAssembleQueue, nil)

import Fuzi

/// Archive completion handler block
public typealias ArchiveCompletionHandler = (webarchiveData: NSData?, metaData: [String: String?]?, error: ArchiveErrorType?) -> ()

/// Fetch resource paths completion handler block
public typealias FetchResourcePathCompletionHandler = (data: NSData?, metaData: [String: String?]?, resources: [String]?, error: ArchiveErrorType?) -> ()

/// Error type
public enum ArchiveErrorType: ErrorType {
