re-add hdbits support, update to development branch

update #477 to development branch