     prefix: 'Cozy DB'
 
 fs = require 'fs'
+path = require 'path'
 async = require 'async'
 
 # Public: the Model constructor


    api.setupModels()

    try {requestsToSave, models} = getRequests options.root
    catch err
        log.raw err.stack
        log.error "Failed to load requests file."

            options.dbName ?= process.env.POUCHDB_NAME or 'cozy'
            PouchModel.db = new Pouch options.dbName

getRequests = (modelsPath) ->
    requestFile = path.join(modelsPath, "requests")
    # get the requests file
    try requests = require requestFile
    catch err
