update kss

add on and off
optimize queue dequeue data