key extraction