various bug fixes, added to hlth_idx_reg