fixed calls to check_config