corrected serious bug in soldier_tree
corrected error reporting