improved error messages when properties files can't be loaded