moved functions from z2h -> sota... -sai