fix curry/bind, some math for crypto