   @before = (timestamp, callback)->
 
     selector =
-      to     : { $lte : timestamp }
+      to     : { $lt : new Date(parseInt(timestamp,10)) }
+
     @one selector, defaultOptions, (err, cache)-> kallback err, cache, callback
 
   @byId = (id, callback)->

          ###

          # cap latest
          if latest and latest.overview.length < lengthPerCache

            # return console.log "capping latest...."
            remainderAmount   = lengthPerCache - latest.overview.length
            remainderOverview = overview.splice -remainderAmount

            latest.cap remainderOverview, -> console.log "capped latest!"

            # terminate only if there are no new items to be cached
            return  if remainderOverview.length <= remainderAmount

          # create new cache instances
          overview2d = []

        return acc
      , {}

      activitiesModifier.to = overview[overview.length-1].createdAt[overview[overview.length-1].createdAt.length-1]

      log overview, activitiesModifier

      @update {
        $pushAll: {overview}
        $set    : activitiesModifier
      }, (err)->
        console.log err, "nope, it doesn't work even it says so."
        callback?()


