use wrapper function to only register one callback with google