update and fix api doc