changing firebase api.