modify api to test.