adding back the firebase code