     console.log 'Start create articles'
     return
 
-if args.length < 2
-    console.log 'Fictitions should take 2 parameters'
-else
-    switch args[1]
-        when 'users' then createUsers()
-        when 'pages' then createPages()
-        when 'articles' then createArticles()
-
-#console.log simpleWord()
-
-###b = new bootstrap
+b = new bootstrap
 
 s = new server
 
 s.bootstrap(b).run (app, server) ->
-    console.log 'Connected to : ' + app.get 'port'###
+    console.log 'Connected to : ' + app.get 'port'
 
+    if args.length < 2
+        console.log 'Fictitions should take 2 parameters'
+    else
+        switch args[1]
+            when 'users' then createUsers(app)
+            when 'pages' then createPages(app)
+            when 'articles' then createArticles(app)
+    return
+

            password: simpleWord()
            status: 1
        }
        console.log user
        n--

    return

generateEmail = ->
    simpleWord() + '@' + simpleWord() + '.' + simpleWord(2)

createUsers = (app) ->
    user_model = app.get('get_model') 'user'

    if typeof args[2] is 'undefined'
        n = 10
    else
        n = args[2]

    console.log 'Start to create ' + n + ' users'

    n = n - 1

    while n > -1
        user = {
