update order of directories creation