changing api connection