debugging the segfault
Checking if file is empty before loading defaults