updated directories state