added "api function not found" alert