replaced setTimeout with process.nextTick - refs #85