added firebaseAPI