more functions, fix a bug concerning use of wuobjects in location tree