update api and commands