first round of firebase integration