update api a bit