update api and readme