min edges in config, validation, cleanup