working on connections to spark api