fix many bugs

upgrade to support server v13.0.0 v13.1.0 v13.2.0