updated process.nextTick to setImmediate

Just getting rid of deprecation warnings, as they pour into the console when streaming