 fs = require 'fs-plus'
 path = require 'path'
 
-glob = require 'glob'
-request = require 'request'
+glob = null    # defer until used
+request = null # defer until used
 
 module.exports =
 class AtomIoClient

    path.join @getCachePath(), "#{login}-#{Date.now()}"

  cachedAvatar: (login, callback) ->
    glob @avatarGlob(login), (err, files) =>
      files.sort().reverse()
      for imagePath in files

        callback(error, null)

  request: (path, callback) ->
    request ?= require 'request'
    request "#{@baseURL}#{path}", (err, res, body) =>
      try
        data = JSON.parse(body)
