add nextTick support