support HSF2
兼容hsf1x
测过2.x，修正粗心问题
Merge pull request #2 from jotcmd/hsf2_jot

兼容hsf1x
pull request from jotcmd
merge from hsf2