added kmalloc for keys