import and api connection