added support for scrypt key derivation