adding metadata endpoint