update pool api and api test