use $files
start to extract json