split to conf and tree