some fixes and improvements to webtools