guarding against empty files on init