working to fix bug in scheduling_opt for multipaths