table api for script