update client lib with various bug fix.