fix for changing api