       console.log "#{dest} exist, leave without touch".warn
 
     assets = [
-      ["#{root}/assets/plugins", 'plugins']
-      ["#{root}/assets/themes", 'themes']
-      ["#{root}/assets/settings.json", 'settings.json']
+      ["#{assets}/plugins", "#{to}/plugins"]
+      ["#{assets}/themes", "#{to}/themes"]
+      ["#{assets}/settings.json", "#{to}/settings.json"]
     ]
     for asset in assets
       if not fs.existsSync asset[1]

      else
        console.log "#{asset[1]} exist, leave without touch".warn

  if not fs.readdirSync('.').length
    init()
  else
    # directory not empty

    console.log "edit article in #{settings.source}/#{category}/#{title}/index.md".prompt
    callback and callback()

cmd_init = (to='.', options) ->
  init = ->
    global_settings = require '../assets/settings'
    assets = path.resolve __dirname, '../assets'
    to = path.resolve to
    src = path.join to, global_settings.source
    dest = path.join to, global_settings.destination

    console.log 'creates site skeleton structure'.info

    if not fs.existsSync(src)
      fs.mkdirSync(src)
      console.log 'copying default blog content'.info
      fs.copy "#{assets}/assets/examples", "#{src}/examples"
    else
      console.log "#{src} exist, leave without touch".warn

