change global directory