simplify config and logging