 
               async.parallel queue, (err) ->
                 return kallback err  if err
+
+                # notify group for new owner
+                contents =
+                  role: 'owner'
+                  id: accountId
+                  group: slug
+                  adminNick: account.profile.nickname
+
+                JGroup.one { slug }, (err, group) ->
+                  if group
+                    group.sendNotification 'MembershipRoleChanged', contents
+
                   # transfer ownership
                   owner.update { $set: { targetId: account.getId() } }, kallback
+
+
   ensureUniquenessOfRoleRelationship:(target, options, fallbackRole, roleUnique, callback) ->
     unless callback
       callback   = roleUnique

          @addMember account, {}, callback  unless removeUserFromTeam


  transferOwnership: permit
    advanced: [
      { permission: 'grant permissions' }

        sourceId: @getId(),
        as      : 'owner'
      }, (err, owner) =>

        return callback err if err
        return callback new KodingError 'You must be the owner to perform this action!' unless owner

