better error message and create a dummy config when there is none