updating global directory