prevent reactor stop twice
add lquery support