load configuration with safe_load