       for _, value of @robot.brain.data.pagerv2.custom
         if value.name?
           @robot.brain.data.pagerv2.custom_name[value.name] = value
-    if process.env.PAGERV2_SCHEDULE_FILE?
-      content = fs.readFileSync(process.env.PAGERV2_SCHEDULE_FILE)
-      @robot.brain.data.pagerv2.schedules = JSON.parse(content)
     @logger.debug 'Pagerv2 Loaded'
     if process.env.PAGERV2_LOG_PATH?
       @errorlog = path.join process.env.PAGERV2_LOG_PATH, 'pagerv2-error.log'

    .then (body) ->
      body.oncalls[0]

  setOverride: (from, who, duration = null, start = null, schedule_id = process.env.PAGERV2_SCHEDULE_ID) ->
    return new Promise (res, err) =>
      if duration? and duration > 1440
        err 'Sorry you cannot set an override of more than 1 day.'

      body.overrides

  getOnCallOrFallBack: (fromtime = null, schedule_id) ->
    @getOnCall(fromtime, schedule_id)
    .catch (error) ->
      @robot.logger.debug "something went wrong getting the OnCAll #{error}"
      return @getSchedule(schedule_id)
