fork from http://git.oschina.net/robust/HDStar