solving  wrong path bugs and many more