configuration done with config block rather than instantiation