remove some useless addons. fix a bug in hgen2