still bugs in encryption