added Firebase integration