add json file type handling