set path automatically