add assert
fix nextTick