update envars and paths