       console.log 'done'
 
   export: ->
-    do @generateIndex
-    do @generateAlbums
-    do @generatePages
+    @generateIndex
+    @generateAlbums
+    @generatePages
 
 
 program = require 'commander'

  constructor: (filename) ->
    if not path.existsSync filename
      console.log "Path doesn't exist, creating..."
      do @createLibrary
      return

    @library = fs.readFileSync filename, 'utf-8'


    @library.photos = photos

    @ensureExif()
    @makeThumbs()

  ensureExif: ->
    async.concatSeries @library.photos, exif.readExifImage, (err, list) =>
      console.log 'done'
      @save()

  scan: ->
    files = fs.readdirSync @library.source
