added code to watch current path