added firebase support