added check for google key