added logging on firebase