ignore json files
better error handling