Register some api functions