"use strict";
var http = require('http');
var firenode_component = require('./components/firenode/firenode');
//var resource_component = require('./components/resource');

//resource_component.load(process.argv[2]);

//start the server
var server = http.createServer(function (request, response) {
	var Firebug = new (firenode_component.Firebug)(response);
	Firebug.log("hello", "world");
	Firebug.error(new Error('broken!'));
	response.end("test");
	//router.route(req, res, {});
});

//heroku or cloud foundry
server.listen(process.env.PORT || process.env.VMC_APP_PORT || 8125, null, function() {
	console.log('Server running');
});
@@ -103,18 +103,16 @@
 node');%0A
-//
 var reso
@@ -163,18 +163,20 @@
 rce');%0A%0A
-//
+var 
 resource
@@ -180,303 +180,221 @@
 rce_
-component.load(process.argv%5B2%5D);%0A%0A//start the server%0Avar server = http.createServer(function (request, response) %7B%0A%09var Firebug = new (firenode_component.Firebug)(response);%0A%09Firebug.log(%22hello%22, %22world%22);%0A%09Firebug.error(new Error('broken!'));%0A%09response.end(%22test%22);%0A%09//router.route(req, res, %7B%7D
+name = process.argv%5B2%5D %7C%7C %22example%22;%0Avar resource = resource_component.get(resource_name);%0A%0A//start the server%0Avar server = http.createServer(function (request, response) %7B%0A%09resource.routeRequest(request, response
 );%0A%7D

move to a workign example