initial sdicode function

So we can always decode in a check aggressive way and in the same way