improved error handling for loading program properties