use directory format for each layer