refine shadowsocks, bug fix