gapi as a provider, logs
use $rootScope to fix the gapi delay