         callback data_
 
 
+    _createMachine = (client, options, callback) ->
+      createMachine client, options, (err, data_) ->
+        expect(err).to.not.exist
+        callback data_
+
+
     _createStack = (client, options, callback) ->
       stackData = { client, user, account, template : data.stackTemplate }
       group             = null

{ createProvisioner }    = require './provisionerhelper'
{ createStackTemplate }  = require './stacktemplatehelper'
{ createCredential }     = require './credentialhelper'
{ PROVIDERS } = require './../../../../social/lib/social/models/computeproviders/computeutils'

JGroup          = require '../../../../social/lib/social/models/group'

      # the created data will be aggregated in the data variable
      fn = switch model
        when 'Group'            then _createGroup
        when 'Stack'            then _createStack
        when 'Machine'          then _createMachine
        when 'Credential'       then _createCredential
        when 'Provisioner'      then _createProvisioner
        when 'StackTemplate'    then _createStackTemplate
        when 'ComputeProvider'  then _createComputeProvider
        else                      -> callback 'invalid request'

