updated sample config and improved error handling for missing config data