simplify
hacked version of sodium