 									
 								addImport(module_name)
 							else
-								initProject result, opts.path
+								initProject crystal, result, opts.path
 								
 				addImport = (module_name) ->
 					module_path = module_name.replace /\./g, '/'

				result.name = opts.name || result.name
				result.version = opts.version || result.version
				result.description = opts.description || result.description
				
				addModule = () ->
					console.log "Choose from popular modules or enter your own:".bold

				import_name = module_name.split '.'
				import_name = import_name[import_name.length-1]
				config.imports[import_name] = "#{module_name}.#{imported}"
				
			switch module_name
				when 'official.authors'
					config.outputs.push {
						generator: 'authors'
						spec:
							name: '$name'
							author: '$author'
					}
				when 'official.license'
					config.outputs.push {
						generator: 'license'
						spec:
							copyright: '$copyright'
					}
				when 'official.readme'
					config.outputs.push {
						generator: 'readme'
						spec:
							name: '$name'
							version: '$version'
							description: '$description'
					}
	
	# convert config obj to yaml doc
	config = yaml.safeDump config
