flats.json is now created automatically if it doesn't exist