storing meta in json file
add logging