added new build function, added : fetch pairs, values, json