update to current API