add default config and make logging more robust