update api and tests