major revision to strarrutils and htmlutils