use process.nextTick for node 0.8.x compat