found bug, encoding of key breaks everything