update root directory