allow json files
minor improvements