add root param\n change config file to return an array