adjust for changes in api