refactored google api interface