if you're using node v0.8 then look into domains