This is probably safe to put in rootCtrl.$rootScope