set path when needed