got api connection working