update api functions