refactor to be more generic on loaders
get a script to extract "schema" of json files