elenril pointed out that metadata gets freed later