add res_hnok implementation in compat layer