finally metadata working