start implementing metadata api