update some api functions