fix missing version change
add some style using eslint
fix potential encrypted input + sync output stall