update dir structure