change hash fns for R16B01 compat

Rebased #154.