intermediary firebase var