include config in try/catch