 activityFetcher = ->
   return console.log "interval options are not valid" unless intervalOptions
   {client} = intervalOptions
-  preFetchItems intervalOptions, client, (err, data)->
+  prefetchedItems intervalOptions, client, (err, data)->
     if err
       return console.log "An error occured while fetching in interval", err
     else
       console.log "updating in interval"
 
-intervalFetcher = setInterval(->
-  activityFetcher()
-, 25000)
+intervalFetcher = setInterval activityFetcher, 25000
 
 module.exports = (options = {}, callback)->
 

# a custom route for prefetched content
getRoute = (options)-> return "scriptblock"

preFetchItems = (options, client, callback) ->

  {bongoModels, client, intro} = options


      prefetchedFeeds = cachedRoutes[route]
      return callback null, prefetchedFeeds

  return prefetchedItems options, client, callback
