moved deepkey init