removed process.on replaced with domain