scrypt fixes