removed commented-out api connection methods