added check_cmd for config file