swtich to firebase