some API code changes