Hgfs tags issue

Fixes some bugs in hgfs. Appears to be functional now.