add all function to api