added option to toggle the path