example with config