using flag to get config info