added key to hex and back