         log.debug "got #{contacts?.google?.length} contacts"
         return callback err if err
         total = contacts.google?.length
-        updatedContacts = {}
         async.eachSeries contacts.google, (gContact, cb) ->
-            addContactToCozy gContact, contacts.cozy, (err, updatedContact)->
-                updatedContacts[gContact.id.$t] = updatedContact
-                cb err
+            addContactToCozy gContact, contacts.cozy, cb
         , (err)->
             return callback err if err
-            async.eachSeries contacts.google, (gContact, cb) ->
-                updated = updatedContacts[gContact.id.$t]
-                if updated?
-                    addContactPicture updated, gContact, (err) ->
-                        log.debug "picture err #{err}" if err
-                        setTimeout cb, 10
-                else
-                    cb()
-            , (err) ->
-                return callback err if err
-
-                _ = localizationManager.t
-                notification.createOrUpdatePersistent "leave-google-contacts",
-                    app: 'import-from-google'
-                    text: _ 'notif_import_contact', total: total
-                    resource:
-                        app: 'contacts'
-                        url: 'contacts/'
-                callback()
+            _ = localizationManager.t
+            notification.createOrUpdatePersistent "leave-google-contacts",
+                app: 'import-from-google'
+                text: _ 'notif_import_contact', total: total
+                resource:
+                    app: 'contacts'
+                    url: 'contacts/'
+            callback()

    pictureLink = gContact.link.filter (link) -> link.rel is PICTUREREL
    pictureUrl = pictureLink[0]?.href

    return done null unless pictureUrl

    opts = url.parse(pictureUrl)
    opts.headers =
        'Authorization': 'Bearer ' + access_token
        'GData-Version': '3.0'
    https.get opts, (stream)->
        stream.on 'error', done
        unless stream.statusCode is 200
            log.warn "error fetching #{pictureUrl}", stream.statusCode
            return done null
        thumbStream = stream.pipe im().resize('300x300^').crop('300x300')
        thumbStream.on 'error', done
        thumbStream.path = 'useless'
        type = stream.headers['content-type']
        opts = {name: 'picture', type: type}
        cozyContact.attachFile thumbStream, opts, (err)->
            if err
                log.error "picture #{err}"
            else

    req.on 'error', callback
    req.end()


# get a list of every contact of a google account
module.exports = (token, callback) ->
    access_token = token
