update the directory