make mode global
centralizing more paths