fixed build, moved key derivation to asynctask