interim commit; spanning algo is buggy