added metadata endpoint