removing debug code
adding an option to extended path to control homotopic steps and
continue in case of failed case