for different dir structure