update for API usage