add size argument for xh_init
change iteration API
don't waste existing entry objects