as an alternative, just prefer setImmediate to nextTick.