api script changes