update for api handler