add json method parsing metadata files
using metadata now