some api code note