script that chnages paths automatically every 60 seconds