fix changes in api