       if err then callback err else @markInstalled client, _apps, (err, apps)=>
         @markFollowing client, apps, callback
 
-  @markInstalled = bongo.secure (client, apps, callback)->
+  @markInstalled = secure (client, apps, callback)->
     Relationship.all
       targetId  : client.connection.delegate.getId()
       as        : 'user'

        default     : 0

    relationships   :
      creator       : JAccount
      review        : JReview
      activity      :
        targetType  : CActivity
        as          : 'activity'
      follower      :
        targetType  : JAccount
        as          : 'follower'
      likedBy       :
        targetType  : JAccount
        as          : 'like'
      participant   :
        targetType  : JAccount
        as          : ['author','reviewer','user']
      tag           :
        targetType  : JTag
        as          : 'tag'

  @create = secure (client, data, callback)->


  CActivity = require './activity'
  JAccount = require './account'
  #JReview = require './messages/review'
  JTag = require './tag'

  @trait __dirname, '../traits/filterable'       # brings only static methods
