moved google api connection to separate class