 					spec[i] = project[s.substr(1)]
 		if processors and processors.length
 			for processor in processors
-				spec[i] = processor spec[i]
+				spec[i] = processor.callback spec[i]
 	spec
 
 sortObject = (object) ->

		console.log "Loading outputs...".bold
		loadOutputs project.outputs, imports, project, this.force

parse = (spec, project, processors) ->
	for i of spec
		s = spec[i]

					mkdirp.sync code_dir
				fs.writeFileSync "#{copy_filename}", fs.readFileSync "#{copy_dir}/#{code_file}"
				
				console.log "Generated file: #{copy_filename}".green
		
		# validate filename
		generator_filename = output.filename or generator.filename
