update api, separate api file