add api functions and api_README